package com.jf.blog.form.blog;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("博客添加和修改表单")
public class BlogForm {
    @ApiModelProperty("博客编号")
    private Integer blogId;
    @ApiModelProperty(value = "博客标题", required = true)
    private String title;
    @ApiModelProperty("博客封面")
    private String cover;
    @ApiModelProperty(value = "博客分类", required = true)
    private Integer categoryId;
    @ApiModelProperty(value = "博客内容", required = true)
    private String content;
    @ApiModelProperty(value = "是否允许评论", allowableValues = "1,2")
    private Integer hasComment;
    @ApiModelProperty(value = "博客状态", allowableValues = "1,2")
    private Integer blogStatus;
    @ApiModelProperty(value = "标签id集合", required = true)
    private List<Integer> tagIds;
}
